<?php include 'home_search_result_css.php'; ?>
<table width="988" border="0" cellspacing="0" cellpadding="0" align="center">
    <tr>
        <td width="9"  background="/public/images/them/t.jpg">&nbsp;</td>

        <td width="970">
            <table width="970" align="center" border="0" cellspacing="0" cellpadding="0"  >

                <?php include 'top_menu.php';?>
                <tr>
                    <td width="970">
                        <table width="970" border="0" cellpadding="0" cellspacing="0"  bgcolor="#FFFFFF">

                            <tr>
                                <td width="5" valign="top"  >&nbsp;</td>
                                <td width="200" valign="top"  >
                                    <div style="font-size: 1px; height: 2px;"></div>
                                    <table width="200" border="0" cellspacing="0" cellpadding="0" align="center">
                                        <tr>
                                            <td id="amdtrai" align="center"><span id="mdtrai">Kết quả tìm kiếm</span></td>
                                        </tr>
                                    </table>
                                    <table width="200" border="0" cellspacing="0" cellpadding="0" align="center"  id="bomenu"  >
                                        <tr>
                                            <td  width="20"  align="right">
                                                <img src="/public/images/them/cham.gif"  align="absmiddle"/>
                                            </td>
                                            <td  width="180" id="amenutrai">
                                                <a  id="menutrai">Tìm kiếm trong sản phẩm</a>
                                            </td>
                                        </tr>
                                        <?php foreach ($aryProductCategory as $key => $value) {?>
                                            <tr>
                                            <td>&nbsp;</td>
                                            <td id="amenutrai2">
                                                <a class="<?php echo ($value['product_category_id'] == $catId) ? 'search_link_selected' : 'search_link';?>" href="/timkiem/?keyword=<?php echo $keyword;?>&catId=<?php echo $value['product_category_id'];?>&type=product" title="<?php echo $value['product_category_name']; ?>"><span><?php echo $value['product_category_name']; ?><font style="color: #7b868a;font-weight: normal;">(<?php echo $value['product_category_total']; ?>)</font></span></a>
                                            </td>
                                            </tr>
                                        <?php }?>
                                        <tr>
                                            <td  width="20"  align="right">
                                                <img src="/public/images/them/cham.gif"  align="absmiddle"/>
                                            </td>
                                            <td  width="180" id="amenutrai">
                                                <a  id="menutrai">Tìm kiếm trong tin tức</a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>&nbsp;</td>
                                            <td id="amenutrai2">
                                                <a class="<?php echo ($type == 'news') ? 'search_link_selected' : 'search_link';?>" href="/timkiem/?keyword=<?php echo $keyword;?>&type=news" title="Tin tức"><span>Tin tức<font style="color: #7b868a;font-weight: normal;">(<?php echo $countTotalNews; ?>)</font></span></a>
                                            </td>
                                        </tr>
                                    </table>
                                    <div style="font-size: 1px; height: 10px;"></div>
                                    <table width="200" border="0" cellspacing="0" cellpadding="0" align="center"  >
                                        <tr>
                                            <td id="amdtrai" align="center"><span id="mdtrai" >HỖ TRỢ TRỰC TUYẾN</span></td>
                                        </tr>
                                    </table>
                                    <table width="200" border="0" cellspacing="0" cellpadding="0" align="center"  id="bomd">

                                        <?php foreach ($arySupport as $key => $value) {?>
                                        <tr>
                                            <td height="25" align="center" ><b>Chăm sóc khách hàng</b>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="center"  >

                                                <a href="ymsgr:sendim?<?php echo $value['yahoo'];?>">
                                                    <img src="http://opi.yahoo.com/online?u=<?php echo $value['yahoo'];?>&amp;m=g&amp;t=2&amp;l=us" border="0"></a>


                                            </td>


                                        </tr>
                                        <tr>
                                            <td height="25"  align="center" ><b>Hotline</b>
                                                <b>0974.177.422</b>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td   align="center" >

                                                <a href="skype:<?php echo $value['skype'];?>?chat">
                                                    <img src="/public/images/them/skypecall.gif" border="0"></a>

                                            </td>
                                        </tr>
                                        <?php } ?>
                                    </table>


                                </td>
                                <td width="3" valign="top"  >&nbsp;</td>
                                <td width="100%"  valign="top">

                                    <div style="font-size: 1px; height: 2px;"></div>

                                    <table width="99%" border="0" align="center" cellpadding="2" cellspacing="2" id="bochinh">

                                        <tr>
                                            <td colspan="4" id="asanpham">
                                                    <div class="list2">
                                                        <?php if($type == 'product' || $type == ''){?>
                                                        <?php if(isset ($aryProductSearch[0])) {?>
                                                        <?php foreach ($aryProductSearch as $key => $value) {?>
                                                        <div class="item">
                                                            <div class="left">
                                                                <div class="bordernews">
                                                                    <div class="imagenews">
                                                                        <a href="/sanpham/<?php echo $value['product_id']?>/<?php echo $value['product_title_filter'];?>.html" title="<?php echo $value['product_title'];?>"><img height="80px" src="<?php echo $value['product_main_image'];?>" title="<?php echo $value['product_title'];?>" alt="<?php echo $value['product_title'];?>"></a>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="right">
                                                                <div class="colnews2">
                                                                    <div class="name">
                                                                        <a href="/sanpham/<?php echo $value['product_id']?>/<?php echo $value['product_title_filter'];?>.html" title="<?php echo $value['product_title'];?>"><?php echo $value['product_title'];?></a>
                                                                    </div>
                                                                    <div class="product_price">
                                                                        <span class="search_span_product"><?php echo ($value['product_price_vnd'] != 0) ? number_format($value['product_price_vnd'], 0, ',', '.').'&nbsp;VNĐ' : 'Call'; ?></span>
                                                                    </div>
                                                                    <div>
                                                                        <?php echo strip_tags($value['product_highlight']);?>
                                                                    </div>
                                                                    <div class="tag">

                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div style="clear: both;height: 1px;"class="clear"></div>
                                                        </div>
                                                        <?php } ?>
                                                        <?php }else{ ?>
                                                        <div class="item">
                                                            <div class="search_no_result">
                                                                Không có kết quả tìm kiếm
                                                            </div>
                                                            <div style="clear: both;height: 1px;"class="clear"></div>
                                                        </div>
                                                        <?php } ?>
                                                        <?php }else if($type == 'news'){ ?>
                                                        <?php if(isset ($arySearchNews[0])){?>
                                                            <?php foreach ($arySearchNews as $key => $value) {?>
                                                                <div class="item">
                                                            <div class="left">
                                                                <div class="bordernews">
                                                                    <div class="imagenews">
                                                                        <a href="/chitiet/<?php echo $value['news_id']?>/<?php echo $value['news_title_filter'];?>.html"><img height="80px" src="<?php echo $value['news_main_image'];?>" title="<?php echo $value['news_title'];?>" alt="<?php echo $value['news_title'];?>"></a>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="right">
                                                                <div class="colnews2">
                                                                    <div class="name">
                                                                        <a href="/chitiet/<?php echo $value['news_id']?>/<?php echo $value['news_title_filter'];?>.html" title="<?php echo $value['news_title'];?>"><?php echo $value['news_title'];?></a>
                                                                    </div>
                                                                    <div>
                                                                        <?php echo strip_tags($value['news_content_filter']);?>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div style="clear: both;height: 1px;"class="clear"></div>
                                                        </div>
                                                            <?php } ?>
                                                        <?php }else{ ?>
                                                        <div class="item">
                                                            <div class="search_no_result">
                                                                Không có kết quả tìm kiếm
                                                            </div>
                                                            <div style="clear: both;height: 1px;"class="clear"></div>
                                                        </div>
                                                        <?php }?>
                                                        <?php } ?>
                                                    </div>
                                                    <div align="right" class="pagination">
                                                        <?php echo $strPaging;?>
                                                    </div>
                                            </td>
                                        </tr>
                                        
                                    </table>

                                </td>
                                <td width="180" valign="top"  >

                    </td>


                    <td width="5" valign="top"  >&nbsp;

                    </td>


                </tr>
            </table>
        </td>
    </tr>

    <tr>
        <td   align="center" valign="top"  >

            <?php include 'home_footer.php';?>
        </td>
    </tr>


</table>
</td>
<td width="9"  background="/public/images/them/p.jpg">&nbsp;</td>
</tr>
</table>

